package cn.rayland.library.bean;

import java.util.Arrays;

/**
 * Created by gw on 2016/1/6.
 */
public class MachineState {
    private MachineTask<?> task;
    private int val;
    private int temper;
    private boolean working;
    private int lastlinenum;
    private boolean error;
    private boolean moving;
    private boolean extruding;
    private boolean[] heating;
    private boolean[] fanning;

	public MachineTask<?> getTask() {
		return task;
	}
	public void setTask(MachineTask<?> task) {
		this.task = task;
	}
	public int getVal() {
		return val;
	}
	public void setVal(int val) {
		this.val = val;
	}
	public int getTemper() {
		return temper;
	}
	public void setTemper(int temper) {
		this.temper = temper;
	}
	public boolean isWorking() {
		return working;
	}
	public void setWorking(boolean working) {
		this.working = working;
	}
	public int getLastlinenum() {
		return lastlinenum;
	}
	public void setLastlinenum(int lastlinenum) {
		this.lastlinenum = lastlinenum;
	}
	public boolean isError() {
		return error;
	}
	public void setError(boolean error) {
		this.error = error;
	}
	public boolean isMoving() {
		return moving;
	}
	public void setMoving(boolean moving) {
		this.moving = moving;
	}
	public boolean isExtruding() {
		return extruding;
	}
	public void setExtruding(boolean extruding) {
		this.extruding = extruding;
	}
	public boolean[] getHeating() {
		return heating;
	}
	public void setHeating(boolean[] heating) {
		this.heating = heating;
	}
	public boolean[] getFanning() {
		return fanning;
	}
	public void setFanning(boolean[] fanning) {
		this.fanning = fanning;
	}
	@Override
	public String toString() {
		return "MachineState [task=" + task + ", val=" + val + ", temper="
				+ temper + ", working=" + working + ", lastlinenum="
				+ lastlinenum + ", error=" + error + ", moving=" + moving
				+ ", extruding=" + extruding + ", heating="
				+ Arrays.toString(heating) + ", fanning="
				+ Arrays.toString(fanning) + "]";
	}
	
	

    
}
